﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using DTO;

namespace BLL
{
    public class LOAINHACUNGCAPBUS
    {
        public static DataTable GetListLOAINHACUNGCAP()
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.GetListLOAINHACUNGCAP();
        }
        public static List<LOAINHACUNGCAP> GetListLOAINHACUNGCAP(int? flag)
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.GetListLOAINHACUNGCAP(flag);
        }
        public static String CreateNewID()
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.CreatenewId();
        }
        public static bool INSERT(LOAINHACUNGCAP bc)
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.INSERT(bc);
        }
        public static bool UPDATE(LOAINHACUNGCAP bc)
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.UPDATE(bc);
        }
        public static bool DELETE(LOAINHACUNGCAP bc)
        {
            LOAINHACUNGCAPDAO b = new LOAINHACUNGCAPDAO();
            return b.DELETE(bc);
        }
    }
}
